package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * 收费总表
 * @TableName dzm_his_care_pkg
 */
public class DzmHisCarePkg implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     *
     */
    private Integer hospitalId;

    /**
     *
     */
    private Integer doctorId;

    /**
     *
     */
    private Integer patientId;

    /**
     *
     */
    private Integer careHistoryId;

    /**
     * 挂号ID
     */
    private Integer registrationId;

    /**
     * 商户订单号
     */
    private String orderCode;

    /**
     * 应付金额
     */
    private Integer amount;

    /**
     * 在线支付部分
     */
    private Integer olPayPart;

    /**
     * 收费类型：0就诊处，1挂号处，2问答，3...
     */
    private Integer typeId;

    /**
     * 状态:0未支付，1已支付，2确认收款，3申请退款，4已退款,5部分支付,6完成交易（如：已发药），7部分退款
     */
    private Integer status;

    /**
     * 插入时间
     */
    private String addtime;

    /**
     * 操作地点：1售药，2查检项目，3附加费用，4挂号，，，，
     */
    private Integer opPlace;

    private static final long serialVersionUID = 1L;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getCareHistoryId() {
        return careHistoryId;
    }

    public void setCareHistoryId(Integer careHistoryId) {
        this.careHistoryId = careHistoryId;
    }

    public Integer getRegistrationId() {
        return registrationId;
    }

    public void setRegistrationId(Integer registrationId) {
        this.registrationId = registrationId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getOlPayPart() {
        return olPayPart;
    }

    public void setOlPayPart(Integer olPayPart) {
        this.olPayPart = olPayPart;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public Integer getOpPlace() {
        return opPlace;
    }

    public void setOpPlace(Integer opPlace) {
        this.opPlace = opPlace;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DzmHisCarePkg that = (DzmHisCarePkg) o;
        return id.equals(that.id) &&
                hospitalId.equals(that.hospitalId) &&
                doctorId.equals(that.doctorId) &&
                patientId.equals(that.patientId) &&
                careHistoryId.equals(that.careHistoryId) &&
                registrationId.equals(that.registrationId) &&
                orderCode.equals(that.orderCode) &&
                amount.equals(that.amount) &&
                olPayPart.equals(that.olPayPart) &&
                typeId.equals(that.typeId) &&
                status.equals(that.status) &&
                addtime.equals(that.addtime) &&
                opPlace.equals(that.opPlace);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, hospitalId, doctorId, patientId, careHistoryId, registrationId, orderCode, amount, olPayPart, typeId, status, addtime, opPlace);
    }

    @Override
    public String toString() {
        return "DzmHisCarePkg{" +
                "id=" + id +
                ", hospitalId=" + hospitalId +
                ", doctorId=" + doctorId +
                ", patientId=" + patientId +
                ", careHistoryId=" + careHistoryId +
                ", registrationId=" + registrationId +
                ", orderCode='" + orderCode + '\'' +
                ", amount=" + amount +
                ", olPayPart=" + olPayPart +
                ", typeId=" + typeId +
                ", status=" + status +
                ", addtime='" + addtime + '\'' +
                ", opPlace=" + opPlace +
                '}';
    }
}